package com.eight.cloud.mybatisplus.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 多租户配置属性
 *
 * @ClassName: SaasConfig
 * @Author: TXC
 * @Date: 2024-10-28 17:41
 **/
@Data
@AutoConfiguration
@ConfigurationProperties(prefix = "system.saas")
@RefreshScope
public class SaasConfig {
    /**
     * 多租户字段名
     */
    private String tenantId = "tenant_id";

    /**
     * 忽略多租户的表名
     * <pre>
     * 数据库中物理表表名
     * </pre>
     */
    private List<String> ignoreTables = new ArrayList<>();
}
